package cn.web;

import com.alibaba.druid.support.http.WebStatFilter;

import javax.servlet.annotation.WebFilter;
import javax.servlet.annotation.WebInitParam;

/**
 * 自定义filter，设置初始化属性，可以开启web监控
 */
@WebFilter(urlPatterns = "/*",initParams = {
        @WebInitParam(name = "exclusions",value = "*.js,*.jpg,*.png,*.css,/druid/*"),//设置忽略拦截规则
        @WebInitParam(name = "sessionStatEnable",value = "true"),//开启session监控
        @WebInitParam(name = "principalSessionName",value = "loginUser"),//设置session的user的key
        @WebInitParam(name = "profileEnable",value = "true")/*,//监控url的sql调用列表
        @WebInitParam(name = "",value = ""),
        @WebInitParam(name = "",value = "")*/
})
public class DruidViewFilter extends WebStatFilter {
}
